﻿<phone:PhoneApplicationPage 
    x:Class="HomeBuyerTools.Views.RentVSBuy.RentVSBuy"
    xmlns:my="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"  
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="728" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="85"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel Orientation="Horizontal" Margin="0,0,0,0">
            <Image x:Name="imgTitle" Width="71" Height="71" HorizontalAlignment="Left" MouseEnter="imgTitle_MouseEnter" Style="{StaticResource PovitTitle}"/>

            <TextBlock x:Name="tblkhyphen" Text="-" Margin="0,-20,5,0" FontSize="74" Foreground="White"/>
            <TextBlock Text="RentVSBuy" Margin="0,15,0,0" Width="245" FontFamily="Comic Sans MS" Foreground="Red" FontSize="28" FontWeight="Bold" TextWrapping="NoWrap"/>
        </StackPanel>
        <ScrollViewer Grid.Row="1">
            <!--ContentPanel - place additional content here-->
            <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>

                <TextBlock  Grid.Row="0"  Text="Monthly Rent"   FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
                <StackPanel Orientation="Horizontal" Grid.Row="1">
                    <TextBox  x:Name="txtMonthlyRent" Foreground="Black" Background="White"  Text="800" InputScope="TelephoneNumber" Width="400" ></TextBox>
                    <TextBlock  FontSize="32" Text="$" Margin="0,12,0,0" Foreground="White"></TextBlock>
                </StackPanel>

                <TextBlock   Grid.Row="2"  Text="Monthly Rental Insurance" FontSize="25"  Margin="8,0,0,0" Foreground="White"></TextBlock>
                <StackPanel Orientation="Horizontal" Grid.Row="3">
                    <TextBox  x:Name="txtMRInsurance" Background="White" Text="15" InputScope="TelephoneNumber" Width="400" ></TextBox>
                    <TextBlock  FontSize="32" Text="$" Margin="0,12,0,0" Foreground="White"></TextBlock>
                </StackPanel>

                <TextBlock  Grid.Row="4"  Text="Expected Annual Inflation Rate" FontSize="25"  Margin="8,0,0,0" Foreground="White"></TextBlock>
                <StackPanel Orientation="Horizontal" Grid.Row="5">
                    <TextBox x:Name="txtEAIR" Text="4" Background="White" InputScope="TelephoneNumber" Width="400" ></TextBox>
                    <TextBlock FontSize="32" Text="%" Margin="0,12,0,0" Foreground="White"></TextBlock>
                </StackPanel>

                <TextBlock  Grid.Row="6"  Text="Purchase Price of Home"  FontSize="25"  Margin="8,0,0,0" Foreground="White"></TextBlock>
                <StackPanel Orientation="Horizontal" Grid.Row="7">
                    <TextBox   x:Name="txtPPofHome" Background="White" Text="100000" InputScope="TelephoneNumber" Width="400" ></TextBox>
                    <TextBlock  FontSize="32" Text="$" Margin="0,12,0,0" Foreground="White"></TextBlock>
                </StackPanel>

                <TextBlock Grid.Row="8"  Text="Down Payment Amount" FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
                <StackPanel Orientation="Horizontal" Grid.Row="9">
                    <TextBox x:Name="txtDownPA" Background="White" Text="10000" InputScope="TelephoneNumber" Width="400" ></TextBox>
                    <TextBlock  FontSize="32" Text="$" Margin="0,12,0,0" Foreground="White"></TextBlock>
                </StackPanel>

                <TextBlock Grid.Row="10"  Text="Length of Mortgage Term" FontSize="25"  Margin="8,0,0,0" Foreground="White"></TextBlock>
                <StackPanel Orientation="Horizontal" Grid.Row="11">
                    <TextBox   x:Name="txtLofMT" Text="30" Background="White" InputScope="TelephoneNumber" Width="400" ></TextBox>
                    <TextBlock  FontSize="32" Text="Yrs" Margin="0,12,0,0" Foreground="White"></TextBlock>
                </StackPanel>

                <TextBlock Grid.Row="12"  Text="Annual Interest Rate of Mortgage"  FontSize="25"  Margin="8,0,0,0" Foreground="White"></TextBlock>
                <StackPanel Orientation="Horizontal" Grid.Row="13">
                    <TextBox  x:Name="txtAIRofM" Text="7" Background="White" InputScope="TelephoneNumber" Width="400" ></TextBox>
                    <TextBlock  FontSize="32" Text="%" Margin="0,12,0,0" Foreground="White"></TextBlock>
                </StackPanel>

                <TextBlock  Grid.Row="14"  Text="Discount Points" FontSize="25"  Margin="8,0,0,0" Foreground="White"></TextBlock>
                <StackPanel Orientation="Horizontal" Grid.Row="15" >
                    <TextBox   x:Name="txtDiscountPoints" Text="1" Background="White" InputScope="TelephoneNumber" Width="400" ></TextBox>
                    <TextBlock  FontSize="32" Text="%" Margin="0,12,0,0" Foreground="White"></TextBlock>
                </StackPanel>

                <TextBlock   Grid.Row="16" Text="Origination Fees" FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
                <StackPanel Orientation="Horizontal" Grid.Row="17">
                    <TextBox   x:Name="txtOriginationFees" Text="1" Background="White" InputScope="TelephoneNumber" Width="400" ></TextBox>
                    <TextBlock  FontSize="32" Text="%" Margin="0,12,0,0" Foreground="White"></TextBlock>
                </StackPanel>

                <TextBlock  Grid.Row="18"  Text="Other Loan Costs" FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
                <StackPanel Orientation="Horizontal" Grid.Row="19">
                    <TextBox   x:Name="txtOtherLCosts" Background="White" Text="0" InputScope="TelephoneNumber" Width="400" ></TextBox>
                    <TextBlock  FontSize="32" Text="$" Margin="0,12,0,0" Foreground="White"></TextBlock>
                </StackPanel>

                <TextBlock   Grid.Row="20" Text="Mortgage Insurance(PMI)" FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
                <StackPanel Orientation="Horizontal" Grid.Row="21">
                    <TextBox    x:Name="txtMIPMI" Text="4" Background="White" InputScope="TelephoneNumber" Width="400" ></TextBox>
                    <TextBlock  FontSize="32" Text="%" Margin="0,12,0,0" Foreground="White"></TextBlock>
                </StackPanel>

                <TextBlock Grid.Row="22" Text="Homeowner's Insurance Rate" FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
                <StackPanel Orientation="Horizontal" Grid.Row="23">
                    <TextBox   x:Name="txtHIR" Text="5" Background="White" InputScope="TelephoneNumber" Width="400" ></TextBox>
                    <TextBlock FontSize="32" Text="%" Margin="0,12,0,0" Foreground="White"></TextBlock>
                </StackPanel>

                <TextBlock   Grid.Row="24" Text="Monthly Association Dues" FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
                <StackPanel Orientation="Horizontal" Grid.Row="25">
                    <TextBox   x:Name="txtMonthlyAD" Text="0" Background="White" InputScope="TelephoneNumber" Width="400" ></TextBox>
                    <TextBlock  FontSize="32" Text="$" Margin="0,12,0,0" Foreground="White"></TextBlock>
                </StackPanel>

                <TextBlock   Grid.Row="26" Text="Average Monthly Maintenance" FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
                <StackPanel Orientation="Horizontal" Grid.Row="27">
                    <TextBox  x:Name="txtAverageMM" Text="100" Background="White" InputScope="TelephoneNumber" Width="400" ></TextBox>
                    <TextBlock  FontSize="32" Text="$" Margin="0,12,0,0" Foreground="White"></TextBlock>
                </StackPanel>

                <TextBlock   Grid.Row="28" Text="Annual Property Tax" FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
                <StackPanel Orientation="Horizontal" Grid.Row="29">
                    <TextBox  x:Name="txtAnnualPT" Text="2000" Background="White" InputScope="TelephoneNumber" Width="400" ></TextBox>
                    <TextBlock  FontSize="32" Text="$" Margin="0,12,0,0" Foreground="White"></TextBlock>
                </StackPanel>

                <TextBlock   Grid.Row="30" Text="Stateplus Federal Income Tax Rate" TextWrapping="Wrap" FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
                <StackPanel Orientation="Horizontal" Grid.Row="31">
                    <TextBox   x:Name="txtSPFITRate" Text="28" Background="White" InputScope="TelephoneNumber" Width="400" ></TextBox>
                    <TextBlock  FontSize="32" Text="%" Margin="0,12,0,0" Foreground="White"></TextBlock>
                </StackPanel>

                <TextBlock   Grid.Row="32" Text="Interest Rate on Savings" FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
                <StackPanel Orientation="Horizontal" Grid.Row="33">
                    <TextBox  x:Name="txtIRonSavings" Text="7" Background="White" InputScope="TelephoneNumber" Width="400" ></TextBox>
                    <TextBlock  FontSize="32" Text="%" Margin="0,12,0,0" Foreground="White"></TextBlock>
                </StackPanel>

                <TextBlock  Grid.Row="34" Text="Home Appreciation Rate" FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
                <StackPanel Orientation="Horizontal" Grid.Row="35">
                    <TextBox  x:Name="txtHomePR" Text="3" Background="White" InputScope="TelephoneNumber" Width="400" ></TextBox>
                    <TextBlock  FontSize="32" Text="%" Margin="0,12,0,0" Foreground="White"></TextBlock>
                </StackPanel>

                <TextBlock   Grid.Row="36" Text="Number of Years Expectedat Property" TextWrapping="Wrap"  FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
                <StackPanel Orientation="Horizontal" Grid.Row="37">
                    <TextBox  x:Name="txtNofYEatP" Text="5" Background="White" InputScope="TelephoneNumber" Width="400" ></TextBox>
                    <TextBlock FontSize="32" Text="Yrs" Margin="0,12,0,0" Foreground="White"></TextBlock>
                </StackPanel>

                <TextBlock  Grid.Row="38" Text="Realtor Commission Rate" FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
                <StackPanel Orientation="Horizontal" Grid.Row="39">
                    <TextBox   x:Name="txtRelatorCR" Text="7" Background="White" InputScope="TelephoneNumber" Width="400" ></TextBox>
                    <TextBlock  FontSize="32" Text="$" Margin="0,12,0,0" Foreground="White"></TextBlock>
                </StackPanel>
                <!--<Button x:Name="btnCalculate" Content="Calculate" Click="Calculate_click" Grid.Row="40"/>-->
            </Grid>
        </ScrollViewer>
        <my:AdControl x:Name="adcontrol" Grid.Row="2"  BorderBrush="Transparent" Margin="-1.5,5,0,0"  AdUnitId="81658" Height="80" Width="480" ApplicationId="3c3f42d5-f5a3-48ea-8832-4a07eaabbce5" IsAutoRefreshEnabled="True" ></my:AdControl>

    </Grid>

    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/Calculator.png" Text="Calculate" Click="ApplicationBarIconButton_Click"/>
            <!--<shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>-->
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
